package com.jd.service;

import java.io.IOException;
import java.util.List;

import com.jd.dao.GetProjectListDAO;
import com.jd.po.User;



public class GetProjectListServiceImpl implements GetProjectListService {
	private GetProjectListDAO getProjectListDAO;

	public void setGetProjectListDAO(GetProjectListDAO getProjectListDAO) {
		this.getProjectListDAO = getProjectListDAO;
	}

	public GetProjectListDAO getGetProjectListDAO() {
		return getProjectListDAO;
	}

	@Override
	public List<String> findProjectByGroup(String userGroup, String tOrb) {
		try {
			return getProjectListDAO.queryByUserGroup(userGroup, tOrb);
		} catch (IOException e) {
			e.printStackTrace();
		}
		return null;
	}

	


}
